package com.example.testanimation;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;


import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

public class Self extends AppCompatActivity {
    private TextView myselfusername;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Compiler EdgeToEdge = null;
        EdgeToEdge.enable();
        setContentView(R.layout.activity_self);
        myselfusername=findViewById(R.id.myself_username);
        String message = getIntent().getStringExtra("message_key");
        if (message != null) {
            myselfusername.setText(message);
        }


    }
    //从个人中心到同学列表
    public void goto_student_atself(View view) {
        Intent intent = new Intent(Self.this, ListStudent.class);
        startActivity(intent);
    }
    //从个人中心跳转到课程页面
    public void goto_student_self(View view) {
        Intent intent = new Intent(Self.this, java.lang.Class.class);
        startActivity(intent);

    }
    //跳转到设置页面
    public void setting(View view) {
        Intent intent = new Intent(Self.this, setting.class);
        startActivity(intent);
    }
    public void goto_selectClass(View view) {
        Intent intent = new Intent(Self.this, SelectClass.class);
        startActivity(intent);
    }

}